package com.liang.service;


import com.liang.pojo.Armyx;
import com.liang.pojo.dto.ArmyDutyxz;
import com.liang.pojo.dto.ArmyDutyxzUserUse;
import com.liang.pojo.dto.ArmyxTreex;

import java.util.Map;
import java.util.List;
/**
 *@作者:lsk
 *Service接口
 *@Date:2023/10/16
*/
public interface ArmyxService {

	/**
	根据Army_id查询
	*/
	public Object selectByArmy_id(Long army_id);

	/**
	根据Army_id更新
	*/
	public Integer updateByArmy_id(Armyx demo);

	/**
	根据Army_id删除
	*/
	public Integer deleteByArmy_id(Long army_id);


	/**
	 * 查询军队的职务
	 */
	public List<ArmyDutyxz> ArmyAndAllDutyxz(Map map);

	/**
	 * 查询军队的职务,并且查看职务是否有人任职
	 */
	public List<ArmyDutyxzUserUse> selectArmyDutyUserUser(Map param);

	/**
	 insert:(插入)
	*/
	public Object insert(Armyx demo);


	/**
	 * 查询军队和他的一个子军队
	 */
	public List<ArmyxTreex> selectListAllArmy(Map<String, Object> param);

	/**
	 insertOrUpdate(插入或更新(根据主键或唯一索引更新，主键和唯一索引不会改变))
	*/
	public Integer insertOrUpdate(Armyx demo);


	/**
	 insertBath:(批量插入)
	*/
	public Integer insertBatch(List<Armyx> list);


	/**
	 insertOrUpdateBatch:(批量插入或更新)
	*/
	public Integer insertOrUpdateBatch(List<Armyx> list);


	/**
	 selectList:(根据参数查询集合)
	*/
	public List<Armyx> selectList(Map<String, Object> param);


	/**
	 selectCount:(根据集合查询数量)
	*/
	public Long selectCount(Map<String, Object> param);
}